<?PHP
#
# author: Cody Sorgenfrey
# (c)2012 South Hill Calvary Chapel
#
function podcast($name, $img, $itunes, $rss) 
{
	printf("<div style='text-align:center;'>\n");
	printf("<h4 style='font-family: Gnuolane;'>".$name."</h4>\n");
	printf("\t\t\t\t<a href='%s' target='_blank'><img src='%s' style='width:%s;' alt='itunes'></a><br/>\n", $itunes, $img, "50%");
	printf("\t\t\t\t<a href='%s' target='_blank'><p>RSS Feed</p></a><br/>\n", $rss);
	printf("</div>\n");
}
include_once("common.php");
$title = 'Podcasts';
$meta_key= 'series, topic, topical, sermons, teaching, Bible, God, Jesus, Word, Old Testament, New Testament, scripture';
$meta_desc="A serires of Podcasts of teachings given at South Hill Calvary Chapel.";
$morehtml= null;
$morejava= null;
startPage($title, $meta_key, $meta_desc, $morehtml, $morejava);
printf("<br/><div id='pod'>\n");
$name = 'Sunday Morning';
$img = 'http://www.southhillcalvary.org/images/podcast.jpg';
$itunes = 'http://www.southhillcalvary.org/podcast/generate.php?service=sunday';
$rss = 'http://www.southhillcalvary.org/podcast/generate.php?service=sunday';
podcast($name, $img, $itunes, $rss);
printf("\t</td>\n");
printf("\t<td>\n");
$name = 'Wednesday Evening';
$img = 'http://www.southhillcalvary.org/images/podcast.jpg';
$itunes = 'http://www.southhillcalvary.org/podcast/generate.php?service=sunday';
$rss = 'http://www.southhillcalvary.org/podcast/generate.php?service=wednesday';
podcast($name, $img, $itunes, $rss);
printf("</div>\n");
endPage();
?>